<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/7/27
 * Time: 17:39
 */

namespace app\admin\controller;


use app\common\controller\Backend;
use app\common\model\FirmContact;

class Consult extends Backend
{
    public function _initialize()
    {
        parent::_initialize();
        $this->model = model('FirmPartner');
    }
    /**
     * 查看
     */
    public function index()
    {
        return parent::index();
    }

    public function checkids()
    {
        $lists = json_decode($this->request->param('ids',[]),true);
        $res = $this->model->where('id','in',$lists)->update(['status'=>FirmContact::YES_STATUS]);
        if($res){
            $this->success('修改成功');
        }else{
            $this->error('修改失败');
        }
    }
}